
export default {
  mode: 'universal',
  /*
  ** Headers of the page
  */
  head: {
    title: '生涯测评系统',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/bitbug_favicon.ico' }
    ]
  },
  /*
  ** Customize the progress-bar color
  */
  loading: { color: '#fff' },
  externals: {
    'vue': 'Vue',
    'element-ui': 'ELEMENT',
 },
  /*
  ** Global CSS
  */
  css: [
    'element-ui/lib/theme-chalk/loading.css',
    'element-ui/lib/theme-chalk/message.css'
  ],
  /*
  ** Plugins to load before mounting the App
  */
  plugins: [
    {
			src: '~/plugins/global',
			ssr: false
		}
  ],
  /*
  ** Nuxt.js dev-modules
  */
  buildModules: [
  ],
  /*
  ** Nuxt.js modules
  */
  modules: [
    // Doc: https://bootstrap-vue.js.org
    // 'bootstrap-vue/nuxt',
    '@nuxtjs/axios',
    '@nuxtjs/proxy'
  ],
  /*
	 ** proxy
	 */
  proxy: {
    '/careerApi': {
			target: 'https://api-test.sx985.com',
			changeOrigin: true,
			pathRewrite: {
				'^/careerApi': '/api/school-career'
			}
    },
  },
  /*
  ** Build configuration
  */
  build: {
    /*
    ** You can extend webpack config here
    */
   analyze: true,
   vendor:[],
    babel: {
      plugins: [
        [
          'component',
          {
            'libraryName': 'element-ui',
            'styleLibraryName': 'theme-chalk'
          }
        ]
      ]
    },
    extend (config, ctx) {
    },
  },
  render: {
    resourceHints: false
  },
}
